package com.moto.mapper;

import com.github.pagehelper.Page;
import com.moto.entity.CarBrand;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.moto.entityDto.CarBrandDto;
import com.moto.entityDto.CarBrandLikeDto;
import org.apache.ibatis.annotations.Mapper;

/**
 * <p>
 * 摩托车品牌表 Mapper 接口
 * </p>
 *
 * @author hyf
 * @since 2023-08-29
 */
@Mapper
public interface CarBrandMapper extends BaseMapper<CarBrand> {

    /**
     * 根据修改摩托车信息
     * @param carBrandDTO
     * @return
     */
    void updateCarBrand(CarBrandDto carBrandDTO);

    /**
     * 模糊查询车辆品牌
     * @param carBrandLikeDto
     * @return
     */
    Page<CarBrand> likeCarBrand(CarBrandLikeDto carBrandLikeDto);

}
